<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
<title>左边子菜单</title>
<link href="__PUBLIC__/css/style.css" rel="stylesheet" type="text/css" />
<script language="JavaScript" src="__PUBLIC__/js/jquery.js"></script> 
<script language="JavaScript" src="__PUBLIC__/js/artDialog/artDialog.source.js?skin=blue"></script>
<script language="JavaScript" src="__PUBLIC__/js/artDialog/plugins/iframeTools.source.js"></script> 
</head>

<body style="background:#f0f9fd;"> 
    <dl class="leftmenu">
        <dd>
	    	<ul class="menuson">
	    	 		{volist name="leftArr" id="vo" key="k" }
	                <li ><cite></cite>
	                <a href="{:url($vo['url'],array('id'=>$vo[id]))}" target="rightFrame">{$vo.names}</a>
	                 <i></i></li>
	    	       {/volist}
	    	 </ul>    
    	</dd>
     
    </dl>
    
</body>
<input type="hidden" id="addMenuSon" value="{:url('product/addMenuSon',array('id'=>$id))}">
<script language="JavaScript" >
$(function(){	
	//导航切换
	$(".menuson li").click(function(){
		$(".menuson li.active").removeClass("active")
		$(this).addClass("active");
	}); 
	//切换内容
	$(".menuson li:eq(0)").addClass("active");
	window.parent.changeMain($(".menuson li:eq(0)").find("a").attr("href"));
 
	
})	
/**
 * 添加子菜单
 */
function addMenuSon(){
	
	 art.dialog.open($("#addMenuSon").val(),{title:'添加子菜单',height:'120px',close:function (){
		 if(art.dialog.data('op')=='ok'){  
	 		
			 location.href=art.dialog.data('url');
			 art.dialog.tips('添加子菜单成功'); 
		 }
		
	 }});
	
}

</script>
</html>
